package com.future.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.future.common.api.admin.entry.SysUser;
import com.future.common.api.result.R;

import java.util.Map;

/**
 * @Author: liuby5
 * @CreateTime: 2023-05-08  14:21
 * @Description:
 * @Version: 1.0
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 获取登录用户
     *
     * @param userName
     * @return
     */
    public R getLoginUser(String userName);


    /**
     * 获取用户权限与角色
     *
     * @param sysUser
     * @return
     */
    public Map<String, Object> getUserRoles(SysUser sysUser);


    /**
     * 验证码生成
     * @return
     */
    public R createCode();

    /**
     * 用户信息
     * @return
     */
    public R getUserInfo();
}
